﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Training.Library.DomainObject.Administration.Catalog;
using Training.Library.DataAccess.Administration.Catalog;
using System.Configuration;
using Training.Web.Support;
using Training.Library.DomainObject.Administration.UserManagement;

using SIPO.Library.DomainObject.Administration.Catalog;
using SIPO.Library.DataAccess.Administration.Catalog;

namespace Training.Web.Forms.Administration.Catalog
{

    public partial class ImportCabangForm :  BasePage
    {
        private int id = -1;

        protected override void OnLoad(EventArgs e)
        {
            try
            {

                //if (Request.Params["id"] != null)
                //{
                //    id = Convert.ToInt32(Request.Params["id"]);
                //}


                if (!Page.IsPostBack)
                {
                    //if (id > 0) // Edit an existing item
                    //{
                    //    CabangRepo CabangDal = new CabangRepo(ConfigurationManager.ConnectionStrings["TrainingConn"].ConnectionString);
                    //    Cabang obj = CabangDal.GetById(id);
                    //    if (obj != null)
                    //    {
                    //        hfID.Value = id.ToString();
                    //        //txtNama.Text = obj.NamaCabang;
                    //    }
                    //}


                }
            }
            catch (Exception ex) {
                ClientScript.RegisterClientScriptBlock(typeof(Page), "error", "alert('" +" Error :" +ex.Message + "');", true);
                return;
            }

        }

     

    
    }

}
